/*
 * @Author: Nick
 * @Date: 2021-04-26 15:01:07
 * @LastEditTime: 2021-06-03 10:34:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /emotech-wxapp/src/actions/userInfo.js
 */
import { SET_USER, REMOVE_USER } from '../constants/user'

/**
 * @description: 设置用户信息
 * @param {*} 用户信息
 */
export const setUser = userInfo => {
	return {
		type: SET_USER,
		userInfo: userInfo
	}
}

/**
 * @description: 清空用户信息
 */
export const removeUser = () => {
	return {
		type: REMOVE_USER,
		userInfo: null
	}
}
